coreVersion: v1
kind: Item
includeTemplates:
  - default
metadata:
  name: datasource
  displayName: Datasource
  pluralName: datasources
  displayPluralName: Datasources
  dataSource: main
  tableName: core_datasources
  titleAttribute: name
  description: Datasources
  icon: ThunderboltOutlined
  core: true
  performDdl: false
  implementation: ru.scisolutions.scicmscore.engine.hook.impl.DatasourceItemImpl
spec:
  attributes:
    name:
      type: string
      columnName: name
      displayName: Name
      description: Name
      required: true
      unique: true
      length: 50
      colWidth: 200
    connectionString:
      type: string
      columnName: connection_string
      displayName: Connection String
      description: Connection String
      required: true
      length: 100
      colWidth: 360
    username:
      type: string
      columnName: username
      displayName: Username
      description: Username
      required: true
      length: 50
      colWidth: 200
    password:
      type: password
      columnName: passwd
      displayName: Password
      description: Password
      required: true
      confirm: true
      encode: false
      length: 50
      colHidden: true
    maxPoolSize:
      type: int
      columnName: max_pool_size
      displayName: Maximum Pool Size
      description: Maximum Pool Size
      minRange: 0
      colWidth: 250
    minIdle:
      type: int
      columnName: min_idle
      displayName: Minimum Idle Connections
      description: Minimum Idle Connections
      minRange: 0
      colWidth: 320
    params:
      type: json
      columnName: params
      displayName: Parameters
      description: Parameters
      required: true
      defaultValue: '{}'
      colHidden: true
      fieldWidth: 12
